<template>
  <!-- 主营产品列表 -->
  <el-table ref="table" :data="list" row-key="id" stripe style="width: 100%">
    <el-table-column label="产品编码" prop="goodsNum" width="250">
    </el-table-column>
    <el-table-column
      label="产品名称"
      prop="goodsName"
      min-width="200"
    ></el-table-column>
    <el-table-column label="产品价格" prop="price" width="250">
    </el-table-column>
    <el-table-column label="产品描述" prop="remark" min-width="200">
    </el-table-column>
  </el-table>
</template>
<script>
export default {
  name: 'productList',
  data () {
    return {}
  },
  props: {
    list: {
      type: Array,
      required: true,
      default: () => {
        return []
      }
    }
  }
}
</script>